import http from "@/libs/http";
class ModelFieldServer {
    async all(row) {
        let res = await http.get("/sys_model_field/all", row);
        return res;
    }

    async allByKey(row) {
        let res = await http.get("/sys_model_field/allByKey", row, {
            hideLoad: true
        });
        return res;
    }

    async add(row) {
        let res = await http.post("/sys_model_field/add", row);
        return res;
    }

    async edit(row) {
        let res = await http.post("/sys_model_field/edit", row);
        return res;
    }

    async del(row) {
        let res = await http.post("/sys_model_field/del", row);
        return res;
    }
}

const modelFieldServer = new ModelFieldServer();
export default modelFieldServer;